<table width="100%" height="15px" cellpadding="1" border="1" align="center" style="position: relative;">
  <tr>
    <td align="left" width="15%">
      <% form_remote_tag(:html => {:id => "initials_list_switch_form"}, :url => {:action => :switch_initials_list}, :update => "initials_list") do %>
        <%= select_tag(:which_initials, options_for_select({"Treatment Categories" => "category", "Drug Names" => "drug"}, @is_show_category_initials ? "category" : "drug"), {:onchange => " $('initials_list_switch_form').onsubmit()"}) %>
      <% end %>
    </td>
    <% ("A".."Z").each do |letter| -%>
      <td align="center">
        <% if @current_initial == letter %>
          <%= letter %>
        <% else %>
          <%= link_to(letter, {:controller => @is_show_category_initials ? "category" : "drug", :action => "list_with_initial", :id => letter}) %>
        <% end %>  
      </td>
    <% end %>
  </tr>
</table>

